﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace YanZhiwei.DotNet.DevExpress12._1.Utilities.Examples
{
    public partial class winMain : Form
    {
        public winMain()
        {
            InitializeComponent();
        }

        private void btnChart_Click(object sender, EventArgs e)
        {
            ShowChildDialog<winChart>();
        }
        private void ShowChildDialog<T>() where T : Form, new()
        {
            T _winChild = new T();
           // _winChild.WindowState = FormWindowState.Maximized;
            _winChild.ShowDialog();
        }
    }
}
